<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
   <%@page import="it.polimi.travelDream.ejb.servlet.*" %>
  <%@page import="it.polimi.travelDream.entities.*" %>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>
		  	TravelDreamRegistration
		</title>
		<link rel="stylesheet" type="text/css" href="style.css" />
  	</head>
  
  
  <body>
  	<div class="header">
  		 <ul>
  			<li>TravelDream</li>
		    Invite to WishList
	    </ul>
  	</div> 	
  	
  	  	<div class="section">	    
	    <div class="nav">	    
		   	
		   		<ul>
	    		<li ><a href="UHome.jsp"> Home</a></li>
	    		<li> <a href="USearch.jsp">Search packages</a></li>
	    			    			<% if (request.getSession().getAttribute("utente")!=null )
		    	{ User z=(User)request.getSession().getAttribute("utente");
		    	out.println("<li><a href=/TravelDreamSystemWeb/ShowTravelList?travellistowner="+z.getId()+" >Travel List </a></li>"); 
		    	} %>
	    			    		<% if (request.getSession().getAttribute("utente")!=null )
		    	{ User z=(User)request.getSession().getAttribute("utente");
		    	out.println("<li><a href=/TravelDreamSystemWeb/ShowWishList?wishlistowner="+z.getId()+" >Wish List </a></li>"); 
		    	} %>
	    		<li> <a href="UCart.jsp">Cart</a></li>
	    		<li class="cur"> Invite to WishList</li>
	    		<li> <a href="SendMail2.jsp"> Invite to TravelList </a></li>
	    			<li> <a href="/TravelDreamSystemWeb/LogoutServlet?session=0"> Logout </a></li>
		   		
	    	</ul>
	    </div>
	    
	    <div class="content">
	  
	    	<form action="MailServlet" method="POST" id=form class=myform>
	    			<div class="spacer"></div>
	    			<fieldset>
	  					<legend>Invite:</legend>
	  						
	  						<div class="spacer"></div>
	  						
	  						
	    		
	    					<label>Email
								<span class="small">Destination Mail</span>
							</label>
							<input type="text" name="to"  />
							
							 <% if (request.getSession().getAttribute("utente")!=null )
		    	{ User z=(User)request.getSession().getAttribute("utente");
		    	
		    	out.println("<input type=hidden name=message value=/TravelDreamSystemWeb/ShowWishList?wishlistowner="+z.getId()+" />"); 
		    	} %>
				    

				    			    
				    <input class=button type="submit" value="Invite" />
			    
	    	</form>
	    	
    		
		</div>

    </div>
    
    <div class="footer">
    	<ul>
	    	<li>TravelDream Company srl © All rights reserved</li>
		    <li>Terms of use | Contacts | Team </li>
	    </ul>
    </div>
    
  </body>
</html>